<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="author" content="郝珍华">
    <title></title>
    <style>
        .box {
            width: 680px;
            height: 200px;
            /* border: 1px solid; */
            margin: 100px auto;
            display: flex;
        }

        .bai {
            margin-top: 5px;
        }

        a {
            text-decoration: none;
            color: inherit;
            font-size: inherit;
            color: #aaa;
        }


        ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }

        span {
            display: inline-block;
            width: 100px;
            height: 30px;
            border: 1px solid #aaa;
            text-align: center;
        }

        a {
            text-decoration: none;
            color: inherit;
            font-size: inherit;
            line-height: 30px;
            color: #aaa;
        }

        section {
            margin-top: 150px;
            margin-left: -300px;
            width: 60px;
            height: 40px;
            text-align: center;
            line-height: 40px;
            background-color: lightgreen;
            display: none;
        }

        .xia {
            margin-left: 5px;
        }


        .active {
            border-color: red;
        }

        .move {
            border-color: red;
        }

        p {
            padding-right: 140px;
            height: 30px;
            line-height: 30px;
            color: #aaa;
            margin: 0;
            position: absolute;
            border: 1px solid;
            display: none;
        }
    </style>
</head>

<body>
    <script src="./jquery.js"></script>
    <div class="box">
        <div class="bai">
            <a href="#">白条分期</a>
        </div>
        <div class="xia">
            <span>
                <a href="#">不分期</a>
                <p>无手续费</p>
            </span>

            <span>
                <a href="#">￥1223x3期</a>
                   <p>无手续费</p> 
            </span>
            <span>
                <a href="#">￥615x6期</a>
                   <p>无手续费</p> 
            </span>
            <span>
                <a href="#">￥308x12期</a>
                   <p>无手续费</p> 
            </span>
            <span>
                <a href="#">￥163x24期</a>
                   <p>无手续费</p> 
            </span>
        </div>
        <section>白条</section>
    </div>
</body>

</html>
<script>
    $('span').hover(function () {
        $(this).addClass('active');
        $(this).find('p').show();
    }, function () {
        $(this).removeClass('active');
        $(this).find('p').hide();
    })
    $('span').click(function (ev) {
        // $(this).toggleClass('move').siblings().removeClass('move');
        if ($(this).hasClass('move')) {
            $(this).removeClass('move')
            $('section').hide();
        } else {
            $(this).addClass('move').siblings().removeClass('move')
            $('section').show()
        }
    })

</script>